package com.supply.dl.app.http;

/**
 * @author tian
 * @desc 实体类基类
 * @date 2017/10/24 16:04
 */
public class BaseInfo<T> {

    /**
     * handleState 是否处理成功，true:成功，false：失败
     */
    private boolean handleState;
    private String message;
    private T data;

    public BaseInfo() {
    }

    public boolean isHandleState() {
        return handleState;
    }

    public void setHandleState(boolean handleState) {
        this.handleState = handleState;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseInfo{" +
                "handleState=" + handleState +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
